{% extends 'AdminBundle:base:index.html.twig' %}
    {% block title %}数据源{% endblock %}
    {% block description %}编辑 数据源.{% endblock %}

    {% block head %}{{ parent() }}{% endblock %}

    {% block breadcrumbs %}
        {% embed "AdminBundle:base:breadcrumbs.html.twig" %}
            {% block breadcrumb %}
                <li><a href="{{ path('basedatasource_index') }}">数据源</a></li>
                <li><a href="{{ path('basedatasource_new') }}">新建</a></li>
                <li class="active">编辑</li>
                <li><a href="{{ path('basedatasource_show', { 'id': dataSource.id }) }}">查看</a></li>
            {% endblock %}
        {% endembed %}
    {% endblock %}


    {% block content %}
        <div class="page-header">
            {{ form_start(delete_form) }}
            <input type="submit" value="删除">
            {{ form_end(delete_form) }}
        </div>

        {{ form_start(form) }}

        <div class="form-group">
            {{ form_label(form.name) }}

            <div class="col-sm-9">
                {{ form_widget(form.name) }}
                <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.name) }}</span>
                        </span>
            </div>
        </div>
        <div class="space-6"></div>

        <div class="form-group">
            {{ form_label(form.username) }}

            <div class="col-sm-9">
                {{ form_widget(form.username) }}
                <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.username) }}</span>
                        </span>
            </div>
        </div>
        <div class="space-6"></div>

        <div class="form-group">
            {{ form_label(form.password) }}

            <div class="col-sm-9">
                {{ form_widget(form.password) }}
                <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.password) }}</span>
                        </span>
            </div>
        </div>

        <div class="form-group">
            {{ form_label(form.note) }}

            <div class="col-sm-9">
                {{ form_widget(form.note) }}
                <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.note) }}</span>
                        </span>
            </div>
        </div>
        <div class="space-6"></div>

        <div class="form-group">
            {{ form_label(form.isEnabled) }}
            <div class="col-sm-9">
                {{ form_widget(form.isEnabled) }}
                <span class="lbl"></span>
            </div>
        </div>
        <div class="space-6"></div>

        <div class="widget-box transparent">
            <div class="widget-header widget-header-flat">
                <h4 class="widget-title lighter">
                    <i class="ace-icon fa fa-star orange"></i>
                    全部显示
                </h4>

                <div class="widget-toolbar">
                    <a href="#" data-action="collapse">
                        <i class="ace-icon fa fa-chevron-up"></i>
                    </a>
                </div>
            </div>
            <div class="space-6"></div>

            <div class="widget-body">
                <div class="form-group">
                    {{ form_label(form.token) }}

                    <div class="col-sm-9">
                        {{ form_widget(form.token) }}
                        <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.token) }}</span>
                        </span>
                    </div>
                </div>
                <div class="space-6"></div>

                <div class="form-group">
                    {{ form_label(form.uri) }}

                    <div class="col-sm-9">
                        {{ form_widget(form.uri) }}
                        <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.uri) }}</span>
                        </span>
                    </div>
                </div>
                <div class="space-6"></div>

                <div class="form-group">
                    {{ form_label(form.method) }}

                    <div class="col-sm-9">
                        {{ form_widget(form.method) }}
                        <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.method) }}</span>
                        </span>
                    </div>
                </div>
                <div class="space-6"></div>

                <div class="form-group">
                    {{ form_label(form.action) }}

                    <div class="col-sm-9">
                        {{ form_widget(form.action) }}
                        <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.action) }}</span>
                        </span>
                    </div>
                </div>
                <div class="space-6"></div>

                <div class="form-group">
                    {{ form_label(form.param) }}

                    <div class="col-sm-9">
                        {{ form_widget(form.param) }}
                        <span class="help-inline col-xs-12 col-sm-7">
                            <span class="middle">{{ form_errors(form.param) }}</span>
                        </span>
                    </div>
                </div>
                <div class="space-6"></div>

            </div>
        </div>

        <div class="clearfix form-actions">
            <div class="col-md-offset-3 col-md-9">
                <button class="btn btn-info" type="submit">
                    <i class="ace-icon fa fa-check bigger-110"></i>
                    Submit
                </button>
                &nbsp; &nbsp; &nbsp;
                <button class="btn" type="reset">
                    <i class="ace-icon fa fa-undo bigger-110"></i>
                    Reset
                </button>
            </div>
        </div>

        {{ form_end(form) }}

    {% endblock %}
